package com.weixing.mall.provider.model.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.weixing.mall.core.support.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 会员模块-收货地址表
 * </p>
 *
 * @author Small
 * @since 2019-11-13
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("uac_delivery_address")
public class DeliveryAddress extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 会员ID
     */
    private Long memberId;

    /**
     * 联系人
     */
    private String contactUser;

    /**
     * 联系人手机号
     */
    private String contactPhone;

    /**
     * 省
     */
    private String province;

    /**
     * 省编码
     */
    private String provinceCode;

    /**
     * 市
     */
    private String city;

    /**
     * 市编码
     */
    private String cityCode;

    /**
     * 区/县
     */
    private String region;

    /**
     * 区编码
     */
    private String regionCode;

    /**
     * 镇/街道
     */
    private String town;

    /**
     * 镇编码
     */
    private String townCode;

    /**
     * 详细地址
     */
    private String addrDetail;

    /**
     * 是否默认
     */
    private Integer isDefault;

    /**
     * 是否删除
     */
    private Boolean isDelete;

    /**
     * 乐观锁
     */
    private Integer revision;

    /**
     * 创建时间
     */
    private Date createdTime;

    /**
     * 邮编
     */
    private String postalCode;
}
